﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GolfLeague.Models
{
    [MetadataType(typeof(HoleDetail_Validation))]
    public partial class HoleDetail
    {
    }

    public class HoleDetail_Validation
    {
        [Required]
        [Range(1, 1100)]
        public Int16 Yardage { get; set; }

        [Required]
        [Range(1, 10, ErrorMessage = "Par for a hole must be 1 through 10.")]
        public Int16 Par { get; set; }
    }
}